<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateTechCasesTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('tech_case', function(Blueprint $table)
		{
			$table->increments('id');
			$table->timestamps();
			//关联tyw_technologies
			$table->integer('tech_id');
			//varchar 255 案例名称
			$table->string('name');
			//text 案例内容
			$table->text('content');
			//timestamp 开始时间
			$table->timestamp('start_time');
			//timestamp 结束时间
			$table->timestamp('end_time');

			$table->softDeletes();

		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('tech_cases');
	}

}
